/*
 * @Author: zhuxiaoyi
 * @Date: 2024-04-17 11:12:23
 * @LastEditor: zhuxiaoyi
 * @LastEditTime: 2025-02-06 12:27:15
 * @Description:
 */
import { Sld } from '../entity/sld.entity';
import { Algorithm } from '../entity/algorithm.entity';
import { Task } from '../entity/task.entity';
import { TaskLog } from '../entity/taskLog.entity';
import { Graph } from '../entity/graph.entity';
import { MiniTask } from '../entity/miniTask.entity';
import { AlgrithmType } from '../entity/algorithmType.entity';
import { M1Product } from '../entity/module1.entity';
import { EverythingSubscriber } from '../event/subscriber';

export default {
  algorithmBaseURL: "C:/slc_sys",
  dataBaseURL: "Z:",
  geoServerURL: 'http://192.168.101.207:8055/geoserver',
  matlabExePath: 'E:/Program Files/MATLABR22020b/bin/matlab.exe',
  matlabRuntimeParamPath: "E:/dwr_tools/matlabCode/runtime_params",
  ArcGISPythonURL: "C:/Python27/ArcGIS10.2/python.exe",
  PythonURL: "C:/Users/wilso/AppData/Local/Programs/Python/Python312/python.exe",
  tmpdir: "C:/slc_sys/templateFiles",
  dataSource: {
    default: {
      type: 'postgres',
      host: 'pgm-bp1jjsk1ju4ks4iyyo.pg.rds.aliyuncs.com',
      port: 5432,
      username: 'postgres',
      password: 'Zyjy2021',
      database: 'dwr_db',
      synchronize: false, // 如果第一次使用，不存在表，有同步的需求可以写 true，注意会丢数据
      logging: false,
      // 配置实体模型
      entities: [Sld, Algorithm, Task, TaskLog, Graph, MiniTask, M1Product, AlgrithmType],
      subscribers: [EverythingSubscriber],
      extra: {
        postgis: true,
      },
    }, 
    // SQLite 配置
    sqlite: {
      type: 'sqlite',
      database: 'd:/14_一体化终端/MyProj.DB',  // SQLite 数据库文件路径
      synchronize: true,  // 如果数据库中表不存在，可以自动创建
      logging: false,
      entities: [AlgrithmType],  // 配置需要同步的实体
    },
  },
}






